import request from '@/utils/request'

// 查询销假记录列表
export function listEliminate(query) {
  return request({
    url: '/backend/eliminate/list',
    method: 'get',
    params: query
  })
}

// 查询销假记录详细
export function getEliminate(id) {
  return request({
    url: '/backend/eliminate/' + id,
    method: 'get'
  })
}

// 新增销假记录
export function addEliminate(data) {
  return request({
    url: '/backend/eliminate',
    method: 'post',
    data: data
  })
}

// 修改销假记录
export function updateEliminate(data) {
  return request({
    url: '/backend/eliminate',
    method: 'put',
    data: data
  })
}

// 删除销假记录
export function delEliminate(id) {
  return request({
    url: '/backend/eliminate/' + id,
    method: 'delete'
  })
}
